set(Project_name greencode)

cmake_minimum_required(VERSION 3.6)

project( ${Project_name} )

set(CMAKE_CXX_COMPILE "/usr/bin/g++")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -fPIC")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(Target greencode)

set(LIB_DIR )
set(SRC_DIR )
set(BUILD_DIR )
set(INCLUDE_DIR )
set(TEST_DIR )
set(GTEST_HOME "usr/local/gtest-1.16.0")

include_directories(
    ${INCLUDE_DIR}
    ${TEST_DIR}/include
    ${GTEST_HOME}/include
    ${INCLUDE_DIR}
)

link_directories(
    ${LIB_DIR}
    ${BUILD_DIR}/lib
    ${GTEST_HOME}/lib
)

MESSAGE(STATUS "PROJEC_SOURCE_DIR = ${PROJECT_SOURCE_DIR} ")

add_definitions("-DGREEN_GEN_DLL")

#添加子目录
add_subdirectory(src)
add_subdirectory(tests)




